package com.game.enums;

import javafx.geometry.Point2D;

/**
 * Copyright (C), 2021-2041, chenc 豫R7HQ53
 *
 * @author: chenc
 * Date:     2023/11/29 21:14
 * Description:移动的方向
 */
public enum Direction {
    /**
     * 向上
     */
    UP(new Point2D(0, -1)),
    /**
     * 向右
     */
    RIGHT(new Point2D(1, 0)),
    /**
     * 向下
     */
    DOWN(new Point2D(0, 1)),
    /**
     * 向左
     */
    LEFT(new Point2D(-1, 0));

    public Point2D point2D;

    Direction(Point2D point2D) {
        this.point2D = point2D;
    }
}